package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class BusLeave {
    public static final Integer STATUS_INIT = 0;//初始化
    public static final Integer STATUS_IN_ROGRESS = 1;//审核中
    public static final Integer STATUS_PASS = 2;//审核通过
    public static final Integer STATUS_REJET = 3;//审核拒绝
    private static final long serialVersionUID = 1L;
    /** */
    private Long id;

    /** */
    private String name;

    /** */
    private String reason;//请假原因

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date starttime;//开始时间

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;//结束时间

    /** */
    private Integer auditid;//审核人名称
    private User auditor;//审核人名称

    /** */
    private Integer status=STATUS_INIT;//状态

    /** */
    private String info;



}